const router = require('koa-router')();
const getData = require('../controller/getdata')
const userdata = require('../controller/userdata');

router.prefix('/api');
router.get("/get/homedata", getData.gethomeData);
router.get("/get/userdata", userdata.getUserData);
router.get('/get/getauthdata', getData.getauthdata);


router.post("/post/json", userdata.update);
router.get("/del/updataJson", userdata.delectData);

module.exports = router;